package com.micro.service.common.exception;

public enum ErrorCode {

	/**
	 *调用服务超时
	 */
	TIMEOUT("5001", "调用服务超时"),

	WEBERROR("5002", "face-web系统内部错误"),

	FRONTERROR("5003", "前置系统未知错误"),

	UNLOGIN("5004", "用户未登录"),
	
	LIMITERR("5005", "用户请求太频繁"),

	NO_REAL_NAME("5006", "用户未实名"),

	TOGETHERPERSON("5007", "登录用户非同一个人"),
	
	SERVERBUSY("5008","系统繁忙,请稍后再试");
	
	private String errorCode;

	private String message;

	private ErrorCode(String errorCode, String message) {

		this.errorCode = errorCode;

		this.message = message;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
